package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * T_BIZ_DECLA_RELASTIONSHIP
 *
 * @author dusy  2017-08-21 报关单关系谱
 */
public class DeclaRelastionship implements Serializable {
    private String id;

    /**
     * 祖辈id
     */
    private String root;
    /**
     * 父辈ID
     */
    private String parent;
    /**
     * 报关单ID
     */
    private String node;
    /**
     * 状态
     */
    private String status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String creator;

    /**
     * T_BIZ_DECLA_RELASTIONSHIP
     */
    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root == null ? null : root.trim();
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent == null ? null : parent.trim();
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node == null ? null : node.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", root=").append(root);
        sb.append(", parent=").append(parent);
        sb.append(", node=").append(node);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", creator=").append(creator);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public DeclaRelastionship() {
    }

    public DeclaRelastionship(String root) {
        this.root = root;
        this.parent = root;
        this.createTime = new Date();
    }
}